﻿#ifndef TOOLBAR_H
#define TOOLBAR_H

#include <QToolBar>

QT_FORWARD_DECLARE_CLASS(QAction)
QT_FORWARD_DECLARE_CLASS(QActionGroup)
QT_FORWARD_DECLARE_CLASS(QSpinBox)
QT_FORWARD_DECLARE_CLASS(QComboBox)
QT_FORWARD_DECLARE_CLASS(QGroupBox)
QT_FORWARD_DECLARE_CLASS(QBoxLayout)
QT_FORWARD_DECLARE_CLASS(QLabel)

class ToolBar : public QToolBar
{
	Q_OBJECT

	QComboBox *combobox;
	QAction *comboboxAct;
	QBoxLayout	*boxLayout;

	QAction *movableAction;

public:
	ToolBar(char *title,QWidget *parent);
	~ToolBar();
	
	QVector<QSpinBox*>	_spinBox;
	QVector<QLabel*>	_label;
	QVector<QComboBox*>	_comboBox;
	QVector<QGroupBox*>	_groupBox;

public slots:
	void addSpinBox();
	void addLabel(char* text, QFont *f);
	void addComboBox(QStringList *qstr, QFont *f);
	void addComboBox(QVector<QIcon> *icon,QStringList *str, QFont *f);
	void endPart();

};

#endif // TOOLBAR_H
